﻿using System;

namespace Exif.Exceptions
{
	///<summary>
	///Исключение, содержащее некий дамп
	///</summary>
	public class BinaryDataException : Exception
	{
		///<summary>
		///Данные
		///</summary>
		public byte[] BinaryData { get; private set; }

		///<summary>
		///Конструктор
		///</summary>
		///<param name="message">Сообщение</param>
		///<param name="binaryData">Данные</param>
		public BinaryDataException(string message, byte[] binaryData)
			: base (message)
		{
			this.BinaryData = binaryData;
		}
	}
}